dojo.declare("MRegistrationPg", wm.Page, {
start: function() {
var mainPage = wm.Page.getPage("MobileMainPg");
if (mainPage.vLoginCount && mainPage.vLoginCount === 1) {
this.restorePhonegapCredentials();
} else {
this.populatePhonegapCredentials();
}
},
"preferredDevice": "phone",
restorePhonegapCredentials: function() {
var mainPage = wm.Page.getPage("MobileMainPg");
if (mainPage.phonegapCredentialStorage) {
var username = mainPage.phonegapCredentialStorage.getValue("name");
var password = mainPage.phonegapCredentialStorage.getValue("dataValue");
if (username || password) {
this.usernameInput.setDataValue(username);
this.passwordInput.setDataValue(password);
if (username && password) {
this.svLogin.update();
}
}
}
},
populatePhonegapCredentials: function() {
var mainPage = wm.Page.getPage("MobileMainPg");
if (mainPage.phonegapCredentialStorage) {
var username = mainPage.phonegapCredentialStorage.getValue("name");
var password = mainPage.phonegapCredentialStorage.getValue("dataValue");
if (username || password) {
this.usernameInput.setDataValue(username);
this.passwordInput.setDataValue(password);
if (username && password) {
}
}
}
},
svLoginResult: function(inSender, inDeprecated) {
try {
var result = inSender.getItem(0);
var mainPage = wm.Page.getPage("MobileMainPg");
if (result.data.authenticated === true || result.data.authenticated === 'true') {
//alert("username=" + this.usernameInput.getDataValue() + ";password=(" + this.passwordInput.getDataValue() + ")");
mainPage.phonegapCredentialStorage.setData({
name: this.usernameInput.getDataValue(),
dataValue: this.passwordInput.getDataValue()
});
var username = mainPage.phonegapCredentialStorage.getValue("name");
var password = mainPage.phonegapCredentialStorage.getValue("dataValue");
mainPage.vLoginCount = 1;
this.notifyLogin.update();
mainPage.vUserName = result.data.name;
mainPage.vUserEmail = result.data.email;
mainPage.vUserId = result.data.customerId;
mainPage.vProjectId = result.data.projectId;
mainPage.vUserRole = result.data.roles;
// mainPage.pictureHome.setShowing(true);
this.panelLoginErrorMessage.setShowing(false);
// mainPage.pictureLogout.setShowing(true);
//  mainPage.headerPanel.setShowing(false);
if (result.data.roles === 'CUSTOMER') {
mainPage.ncCustomerService.update();
} else if (result.data.roles === 'VENDOR') {
mainPage.ncVendorHomePg.update();
} else if (result.data.roles === 'ADMIN') {
mainPage.ncCustomerService.update();
}
} else {
// this.notifyLoginError.update();
this.panelLoginErrorMessage.setShowing(true);
this.loginErrorMsg.setCaption("Invalid username or password.");
this.passwordInput.clear();
this.usernameInput.focus();
}
} catch (e) {
this.label1.caption = e;
}
},
buttonRegistrationClick: function(inSender) {
var isValid = true;
var errorMsg = "Please enter valid data in required fields";
if (!this.luBlocks.getDataValue() || (this.luBlocks && this.luBlocks.getDataValue() === "")) {
isValid = false;
errorMsg = "Please enter valid Block";
} else
if (!this.luDoor.getDataValue() || (this.luDoor && this.luDoor.getDataValue() === "")) {
isValid = false;
errorMsg = "Please enter Door";
} else if (!this.emailEditor1.getDataValue() || (this.emailEditor1 && this.emailEditor1.getDataValue() === "") || this.emailEditor1.getInvalid()) {
isValid = false;
errorMsg = "Please enter valid email Id";
} else if (!this.passwordEditor1.getDataValue() || (this.passwordEditor1 && this.passwordEditor1.getDataValue() === "")) {
isValid = false;
errorMsg = "Please enter valid password";
} else if (!this.nameEditor1.getDataValue() || (this.nameEditor1 && this.nameEditor1.getDataValue() === "")) {
isValid = false;
errorMsg = "Please enter Name";
} else
if (!this.primaryPhoneEditor1.getDataValue() || (this.primaryPhoneEditor1 && this.primaryPhoneEditor1.getDataValue() === "") || this.primaryPhoneEditor1.getInvalid()) {
isValid = false;
errorMsg = "Please enter valid Phone Number";
} else if (this.pictureRegistrationChkBox.showing) {
errorMsg = "Please select the copyright";
isValid = false;
}
if (isValid) {
this.usernameInput.setDataValue(this.emailEditor1.getDataValue());
this.passwordInput.setDataValue(this.passwordEditor1.getDataValue());
console.log('calling service for registration');
this.svRegistration.update();
} else {
app.toastPosition = "center center";
app.toastWarning(errorMsg, 2000);
//this.ncRequiredFields.text=errorMsg;
// this.ncRequiredFields.update();
}
},
picture1Click: function(inSender) {
this.picture2.setShowing(true);
this.picture1.setShowing(false);
},
picture2Click: function(inSender) {
this.picture2.setShowing(false);
this.picture1.setShowing(true);
},
svRegistrationError: function(inSender, inError) {
var inMsg = inError.toString();
var msg = inMsg.substr(inMsg.indexOf('ion:') + 4);
this.notifyRegistrationError.input.setValue("text", msg);
this.notifyRegistrationError.update();
},
lvValidateActivationCodeResult: function(inSender, inDeprecated) {
if (inSender.isEmpty()) {
this.ncInValidActivationCode.update();
// this.textActivationCode.clear();
this.textActivationCode.focus();
} else {
this.ncValidActivationCode.update();
}
},
textActivationCodeChange: function(inSender, inDisplayValue, inDataValue, inSetByCode) {
if (this.textActivationCode.isDirty) {
this.lvValidateActivationCode.update();
}
},
svRegistrationSuccess2: function(inSender, inDeprecated) {
this.loginButton.click();
},
pictureChkBoxClick: function(inSender) {
this.pictureChkBox.setShowing(false);
this.pictureChkBoxChecked.setShowing(true);
},
pictureChkBoxCheckedClick: function(inSender) {
this.pictureChkBoxChecked.setShowing(false);
this.pictureChkBox.setShowing(true);
},
loginButtonClick: function(inSender) {
var invalid = false;
if (!this.usernameInput.getDataValue || this.usernameInput.getInvalid()) {
invalid = true;
}
if (!this.passwordInput.getDataValue || this.passwordInput.getInvalid()) {
invalid = true;
}
if (invalid) {
this.ncRequiredFields.update();
} else {
if(this.svLogin._requester){
delete this.svLogin._requester;
}
this.svLogin.update();
// console.log(this.svLogin._requester);
//alert(this.svLogin._requester);
}
//  loadingDialog.show
},
pictureRegistrationClick: function(inSender) {
if (this.pictureRegistrationChkBox.showing) {
this.pictureRegistrationChkBox.setShowing(false);
this.pictureRegistrationChkBoxChecked.setShowing(true);
} else {
this.pictureRegistrationChkBox.setShowing(true);
this.pictureRegistrationChkBoxChecked.setShowing(false);
}
},
pictureRegistrationChkBoxClick: function(inSender) {
this.pictureRegistrationChkBox.setShowing(false);
this.pictureRegistrationChkBoxChecked.setShowing(true);
},
pictureRegistrationChkBoxCheckedClick: function(inSender) {
this.pictureRegistrationChkBox.setShowing(true);
this.pictureRegistrationChkBoxChecked.setShowing(false);
},
luBlocksChange: function(inSender, inDisplayValue, inDataValue, inSetByCode) {
this.luDoor.setOptions(inDataValue.dataValue);
},
bResetPasswordClick: function(inSender) {
if (this.usernameInput.getDataValue() && this.usernameInput.getDataValue() !== "") {
this.svForgotPassword.update();
} else {
app.toastWarning("Please enter email address", 2000);
}
},
registerButtonClick1: function(inSender) {
},
labelCoyRight7ReadOnlyNodeFormat: function(inSender, inValue) {
return "	<a href='tel:080-25723322'>Customer Care 080-25723322</a>";
},
_end: 0
});

MRegistrationPg.widgets = {
svRegistration: ["wm.ServiceVariable", {"inFlightBehavior":"executeLast","operation":"register","service":"RegistrationService"}, {"onError":"svRegistrationError","onSuccess":"notifyRegistration","onSuccess1":"layerLogin","onSuccess2":"svRegistrationSuccess2"}, {
input: ["wm.ServiceInput", {"type":"registerInputs"}, {}, {
binding: ["wm.Binding", {}, {}, {
wire3: ["wm.Wire", {"expression":undefined,"source":"passwordEditor1.dataValue","targetProperty":"customer.password"}, {}],
wire4: ["wm.Wire", {"expression":undefined,"source":"secondaryPhoneEditor1.dataValue","targetProperty":"customer.secondaryPhone"}, {}],
wire5: ["wm.Wire", {"expression":undefined,"source":"primaryPhoneEditor1.dataValue","targetProperty":"customer.primaryPhone"}, {}],
wire6: ["wm.Wire", {"expression":undefined,"source":"nameEditor1.dataValue","targetProperty":"customer.name"}, {}],
wire7: ["wm.Wire", {"expression":undefined,"source":"emailEditor1.dataValue","targetProperty":"customer.email"}, {}],
wire1: ["wm.Wire", {"expression":undefined,"source":"luProjects.selectedItem.projectId","targetProperty":"activationCode"}, {}],
wire: ["wm.Wire", {"expression":undefined,"source":"luBlocks.selectedItem.name","targetProperty":"customer.block.blockName"}, {}],
wire2: ["wm.Wire", {"expression":undefined,"source":"luDoor.selectedItem.dataValue","targetProperty":"customer.door.doorName"}, {}],
wire8: ["wm.Wire", {"expression":undefined,"source":"[mobileMainPg].vProjectName.dataValue","targetProperty":"customer.project.projectName"}, {}]
}]
}]
}],
notifyRegistration: ["wm.NotificationCall", {"operation":"toast"}, {}, {
input: ["wm.ServiceInput", {"type":"toastInputs"}, {}, {
binding: ["wm.Binding", {}, {}, {
wire: ["wm.Wire", {"expression":"\"Registered Successfully.Please login  using the credentials\"","targetProperty":"text"}, {}],
wire2: ["wm.Wire", {"expression":"\"Success\"","targetProperty":"cssClasses"}, {}],
wire1: ["wm.Wire", {"expression":"2000","targetProperty":"duration"}, {}],
wire3: ["wm.Wire", {"expression":"\"bottom center\"","targetProperty":"dialogPosition"}, {}]
}]
}]
}],
svLogin: ["wm.ServiceVariable", {"inFlightBehavior":"executeLast","operation":"retrieveUserDetails","service":"RegistrationService"}, {"onResult":"svLoginResult"}, {
input: ["wm.ServiceInput", {"type":"retrieveUserDetailsInputs"}, {}, {
binding: ["wm.Binding", {}, {}, {
wire: ["wm.Wire", {"expression":undefined,"source":"usernameInput.dataValue","targetProperty":"email"}, {}],
wire1: ["wm.Wire", {"expression":undefined,"source":"passwordInput.dataValue","targetProperty":"password"}, {}],
wire2: ["wm.Wire", {"expression":undefined,"source":"luProjects.selectedItem.projectId","targetProperty":"projectId"}, {}],
wire3: ["wm.Wire", {"expression":undefined,"source":"[mobileMainPg].vProjectName.dataValue","targetProperty":"projectName"}, {}]
}]
}]
}],
notifyLogin: ["wm.NotificationCall", {"operation":"toast"}, {}, {
input: ["wm.ServiceInput", {"type":"toastInputs"}, {}, {
binding: ["wm.Binding", {}, {}, {
wire2: ["wm.Wire", {"expression":"\"Success\"","targetProperty":"cssClasses"}, {}],
wire: ["wm.Wire", {"expression":"\"Logged in Successfully\"","targetProperty":"text"}, {}],
wire1: ["wm.Wire", {"expression":"2000","targetProperty":"duration"}, {}],
wire3: ["wm.Wire", {"expression":"\"bottom center\"","targetProperty":"dialogPosition"}, {}]
}]
}]
}],
notifyLoginError: ["wm.NotificationCall", {"operation":"toast"}, {}, {
input: ["wm.ServiceInput", {"type":"toastInputs"}, {}, {
binding: ["wm.Binding", {}, {}, {
wire: ["wm.Wire", {"expression":"\"User not found\"","targetProperty":"text"}, {}],
wire2: ["wm.Wire", {"expression":"\"Error\"","targetProperty":"cssClasses"}, {}],
wire3: ["wm.Wire", {"expression":"\"center center\"","targetProperty":"dialogPosition"}, {}],
wire1: ["wm.Wire", {"expression":"2000","targetProperty":"duration"}, {}]
}]
}]
}],
ncRequiredFields: ["wm.NotificationCall", {"operation":"toast"}, {}, {
input: ["wm.ServiceInput", {"type":"toastInputs"}, {}, {
binding: ["wm.Binding", {}, {}, {
wire1: ["wm.Wire", {"expression":"2000","targetProperty":"duration"}, {}],
wire2: ["wm.Wire", {"expression":"\"Warning\"","targetProperty":"cssClasses"}, {}],
wire3: ["wm.Wire", {"expression":"\"center center\"","targetProperty":"dialogPosition"}, {}],
wire: ["wm.Wire", {"expression":"\"Please enter valid data in required fields.\"","targetProperty":"text"}, {}]
}]
}]
}],
notifyRegistrationError: ["wm.NotificationCall", {"operation":"toast"}, {}, {
input: ["wm.ServiceInput", {"type":"toastInputs"}, {}, {
binding: ["wm.Binding", {}, {}, {
wire: ["wm.Wire", {"expression":"\"Error\"","targetProperty":"cssClasses"}, {}],
wire2: ["wm.Wire", {"expression":"\"Error during registration \"","targetProperty":"text"}, {}],
wire3: ["wm.Wire", {"expression":"\"center center\"","targetProperty":"dialogPosition"}, {}],
wire1: ["wm.Wire", {"expression":"2000","targetProperty":"duration"}, {}]
}]
}]
}],
ncValidActivationCode: ["wm.NotificationCall", {"operation":"toast"}, {}, {
input: ["wm.ServiceInput", {"type":"toastInputs"}, {}, {
binding: ["wm.Binding", {}, {}, {
wire1: ["wm.Wire", {"expression":"4000","targetProperty":"duration"}, {}],
wire2: ["wm.Wire", {"expression":"\"Success\"","targetProperty":"cssClasses"}, {}],
wire: ["wm.Wire", {"expression":"\"Activation Code Found.Please Enter remaining data.\"","targetProperty":"text"}, {}],
wire3: ["wm.Wire", {"expression":"\"center center\"","targetProperty":"dialogPosition"}, {}]
}]
}]
}],
ncInValidActivationCode: ["wm.NotificationCall", {"operation":"toast"}, {}, {
input: ["wm.ServiceInput", {"type":"toastInputs"}, {}, {
binding: ["wm.Binding", {}, {}, {
wire: ["wm.Wire", {"expression":"\"Error\"","targetProperty":"cssClasses"}, {}],
wire2: ["wm.Wire", {"expression":"\"Activation code not found.\"","targetProperty":"text"}, {}],
wire3: ["wm.Wire", {"expression":"\"center center\"","targetProperty":"dialogPosition"}, {}],
wire1: ["wm.Wire", {"expression":"2000","targetProperty":"duration"}, {}]
}]
}]
}],
svForgotPassword: ["wm.ServiceVariable", {"inFlightBehavior":"executeLast","operation":"forgotPassword","service":"RegistrationService"}, {"onSuccess":"ncForgotPassword"}, {
input: ["wm.ServiceInput", {"type":"forgotPasswordInputs"}, {}, {
binding: ["wm.Binding", {}, {}, {
wire: ["wm.Wire", {"expression":undefined,"source":"usernameInput.dataValue","targetProperty":"email"}, {}]
}]
}]
}],
ncForgotPassword: ["wm.NotificationCall", {"operation":"toast"}, {}, {
input: ["wm.ServiceInput", {"type":"toastInputs"}, {}, {
binding: ["wm.Binding", {}, {}, {
wire: ["wm.Wire", {"expression":undefined,"source":"svForgotPassword.dataValue","targetProperty":"text"}, {}],
wire2: ["wm.Wire", {"expression":"\"Success\"","targetProperty":"cssClasses"}, {}],
wire3: ["wm.Wire", {"expression":"\"center center\"","targetProperty":"dialogPosition"}, {}],
wire1: ["wm.Wire", {"expression":"2000","targetProperty":"duration"}, {}]
}]
}]
}],
loadingLogin: ["wm.LoadingDialog", {"caption":"Connecting to server. Please wait..Check your internet connection if it is taking time","captionWidth":"200px","serviceVariableToTrack":["svLogin","svRegistration","svBlocks","svDoors","svProjects"]}, {}, {
binding: ["wm.Binding", {}, {}, {
wire: ["wm.Wire", {"expression":undefined,"source":"layoutBox1","targetProperty":"widgetToCover"}, {}]
}]
}],
loadingBlocks: ["wm.LoadingDialog", {"caption":"Connecting to server. Please wait..","captionWidth":"200px"}, {}, {
binding: ["wm.Binding", {}, {}, {
wire: ["wm.Wire", {"expression":undefined,"source":"layoutBox1","targetProperty":"widgetToCover"}, {}]
}]
}],
ldPassword: ["wm.LoadingDialog", {"caption":"Sending your password ...","captionWidth":"100%","serviceVariableToTrack":["svForgotPassword"]}, {}, {
binding: ["wm.Binding", {}, {}, {
wire: ["wm.Wire", {"expression":undefined,"source":"layoutBox1","targetProperty":"widgetToCover"}, {}]
}]
}],
layoutBox1: ["wm.Layout", {"horizontalAlign":"left","styles":{},"verticalAlign":"top"}, {}, {
headerPanel: ["wm.HeaderContentPanel", {"borderColor":"#888888","desktopHeight":"15%","deviceType":null,"enableTouchHeight":true,"fitToContentHeight":true,"height":"67px","horizontalAlign":"center","layoutKind":"left-to-right","minDesktopHeight":65,"minHeight":65,"minMobileHeight":65,"mobileHeight":"15%","styles":{"backgroundImage":"resources/images/mobile/background_m.jpg"},"verticalAlign":"top","width":"100%"}, {}, {
pH2mHeader: ["wm.Picture", {"aspect":"v","height":"100%","minDesktopHeight":65,"minHeight":65,"source":"resources/images/mobile/h2m_header.png","styles":{},"width":"100%"}, {}]
}],
panel2: ["wm.Panel", {"autoScroll":true,"borderColor":"#fbfbfb","height":"100%","horizontalAlign":"left","styles":{},"verticalAlign":"top","width":"100%"}, {}, {
layers1: ["wm.Layers", {"margin":"0,0,0,0","styles":{},"transition":"slide"}, {}, {
layerLogin: ["wm.Layer", {"autoScroll":true,"borderColor":"","caption":"Please Login","horizontalAlign":"left","styles":{},"themeStyleType":"","verticalAlign":"top"}, {}, {
loginInputPanel: ["wm.HeaderContentPanel", {"_classes":{"domNode":["rounded"]},"autoScroll":true,"deviceType":null,"enableTouchHeight":true,"height":"100%","horizontalAlign":"center","styles":{"color":""},"verticalAlign":"top","width":"100%"}, {"onEnterKeyPress":"loginButton.click"}, {
panel1: ["wm.Panel", {"desktopHeight":"90px","enableTouchHeight":true,"height":"102px","horizontalAlign":"center","mobileHeight":"102px","padding":"5","styles":{},"verticalAlign":"top","width":"100%"}, {}, {
usernameInput: ["wm.Text", {"border":"0","caption":"Email Id","captionAlign":"left","captionSize":"1px","dataValue":undefined,"desktopHeight":"35px","displayValue":"","height":"45px","mobileHeight":"45px","placeHolder":"Email ID:","regExp":"^[a-zA-Z0-9._%-]+@[a-zA-Z0-9.-]+\\.[a-zA-Z]{2,4}$","required":true,"styles":{},"width":"95%"}, {}],
passwordInput: ["wm.Text", {"border":"0","caption":"Password","captionAlign":"left","captionSize":"1px","dataValue":undefined,"desktopHeight":"35px","displayValue":"","height":"45px","maxChars":"50","mobileHeight":"45px","password":true,"placeHolder":"Password:","required":true,"styles":{"fontSize":"16px"},"width":"95%"}, {}]
}],
panelLoginErrorMessage: ["wm.Panel", {"desktopHeight":"56px","enableTouchHeight":true,"height":"30px","horizontalAlign":"left","mobileHeight":"30px","showing":false,"styles":{},"verticalAlign":"top","width":"100%"}, {}, {
loginErrorMsg: ["wm.Label", {"align":"center","caption":" ","height":"100%","padding":"4","singleLine":false,"styles":{"color":"#e21313","fontWeight":"bolder","fontSize":"14px"},"width":"100%"}, {}, {
format: ["wm.DataFormatter", {}, {}]
}]
}],
loginButtonPanel: ["wm.Panel", {"desktopHeight":"45px","enableTouchHeight":true,"height":"50px","horizontalAlign":"center","layoutKind":"left-to-right","mobileHeight":"50px","padding":"1","styles":{},"width":"100%"}, {}, {
loginButton: ["wm.Button", {"border":"1","borderColor":"#000000","caption":"Login to My Account &nbsp; &nbsp; ","height":"100%","iconHeight":"25px","iconWidth":"25px","imageIndex":0,"imageList":"app.silkIconList","styles":{},"width":"95%"}, {"onclick":"loginButtonClick"}, {
binding: ["wm.Binding", {}, {}, {
wire: ["wm.Wire", {"expression":"${usernameInput.invalid} || ${passwordInput.invalid}","targetProperty":"disabled"}, {}]
}]
}]
}],
spacer2: ["wm.Spacer", {"height":"7px","width":"57px"}, {}],
panelRegister: ["wm.Panel", {"desktopHeight":"130px","enableTouchHeight":true,"height":"179px","horizontalAlign":"center","mobileHeight":"179px","padding":"1","styles":{},"width":"100%"}, {}, {
registerButton: ["wm.Button", {"border":"1","borderColor":"#000000","caption":"Register New Account","desktopHeight":"45px","height":"50px","imageIndex":54,"imageList":"app.silkIconList","mobileHeight":"50px","styles":{},"width":"95%"}, {"onclick":"layerRegistration","onclick1":"registerButtonClick1"}],
spacer5: ["wm.Spacer", {"height":"10px","styles":{},"width":"57px"}, {}],
bResetPassword: ["wm.Button", {"border":"1","borderColor":"#000000","caption":"Forgot Password &nbsp; &nbsp; &nbsp; &nbsp; ","desktopHeight":"45px","height":"50px","imageIndex":64,"imageList":"app.silkIconList","mobileHeight":"50px","styles":{},"width":"95%"}, {"onclick":"bResetPasswordClick"}],
spacer6: ["wm.Spacer", {"height":"15px","styles":{},"width":"57px"}, {}],
labelCoyRight4: ["wm.Label", {"align":"center","caption":"Copyright @2014 H2M App.com","height":"26px","link":"http://h2mapp.com/products.html","padding":"4","styles":{"fontWeight":"normal","fontSize":"8px"},"width":"100%"}, {}],
labelCoyRight7: ["wm.Label", {"align":"center","caption":"","display":"labelCoyRight7ReadOnlyNodeFormat","height":"34px","link":undefined,"padding":"4","styles":{"fontWeight":"normal","fontSize":"12px","fontStyle":"normal"},"width":"100%"}, {}]
}]
}]
}],
layerRegistration: ["wm.Layer", {"autoScroll":true,"borderColor":"","caption":"Registration","horizontalAlign":"center","styles":{},"themeStyleType":"ContentPanel","verticalAlign":"top"}, {}, {
panelContent: ["wm.HeaderContentPanel", {"autoScroll":true,"height":"100%","horizontalAlign":"center","margin":"0,0,0,0","styles":{},"verticalAlign":"top","width":"100%"}, {}, {
formPanel1: ["wm.FormPanel", {"autoScroll":true,"captionSize":"1px","deviceType":null,"editorHeight":"40px","height":"100%","margin":"5,0,0,0","padding":"0","styles":{},"type":"com.servicelivedb.data.Customer"}, {}, {
panelRegPage1: ["wm.Panel", {"autoScroll":true,"enableTouchHeight":true,"height":"100%","horizontalAlign":"center","styles":{},"verticalAlign":"top","width":"100%"}, {}, {
luProjects: ["wm.Lookup", {"border":"1","caption":"Project","captionSize":"1px","dataType":"com.servicelivedb.data.Project","dataValue":undefined,"desktopHeight":"30px","displayField":"projectName","displayValue":"","height":"20px","margin":"0,0,0,0","mobileHeight":"20px","padding":"0","placeHolder":"Project","readonly":true,"showing":false,"styles":{},"width":"100%"}, {}, {
binding: ["wm.Binding", {}, {}, {
wire: ["wm.Wire", {"expression":undefined,"source":"svProjects","targetProperty":"dataSet"}, {}]
}]
}],
luBlocks: ["wm.Lookup", {"border":"0","caption":"Block List","captionSize":"1px","dataType":"EntryData","dataValue":undefined,"desktopHeight":"35px","displayField":"name","displayValue":"","height":"35px","placeHolder":"Select a Block","styles":{},"width":"95%"}, {"onchange":"luBlocksChange"}, {
binding: ["wm.Binding", {}, {}, {
wire: ["wm.Wire", {"expression":undefined,"source":"[mobileMainPg].vProjectBlocks","targetProperty":"dataSet"}, {}]
}]
}],
luDoor: ["wm.Lookup", {"border":"0","caption":"Flat List","captionSize":"1px","dataValue":undefined,"desktopHeight":"35px","displayValue":"","height":"35px","placeHolder":"Select a Door","styles":{},"width":"95%"}, {}],
emailEditor1: ["wm.Text", {"border":"0","caption":"Email","captionSize":"1px","dataValue":"","desktopHeight":"26px","displayValue":"","emptyValue":"emptyString","height":"35px","margin":"1,0,0,0","maxChars":"50","padding":"1","placeHolder":"Email ID:","regExp":"^[a-zA-Z0-9._%-]+@[a-zA-Z0-9.-]+\\.[a-zA-Z]{2,4}$","required":true,"styles":{"fontSize":"16px"},"width":"95%"}, {}],
passwordEditor1: ["wm.Text", {"border":"0","caption":"Password","captionSize":"1px","dataValue":"","displayValue":"","emptyValue":"emptyString","enableTouchHeight":false,"height":"35px","margin":"1,0,0,0","maxChars":"50","padding":"1","password":true,"placeHolder":"Password:","required":true,"styles":{},"width":"95%"}, {}],
nameEditor1: ["wm.Text", {"border":"0","caption":"Name","captionSize":"1px","dataValue":"","desktopHeight":"26px","displayValue":"","emptyValue":"emptyString","height":"35px","margin":"1,0,0,0","maxChars":"100","padding":"1","placeHolder":"First Name   Last Name:","required":true,"styles":{},"width":"95%"}, {}],
primaryPhoneEditor1: ["wm.Text", {"border":"0","caption":"PrimaryPhone","captionSize":"1px","dataValue":"","desktopHeight":"26px","displayValue":"","emptyValue":"emptyString","height":"35px","margin":"1,0,0,0","maxChars":"10","padding":"1","placeHolder":"Primary Phone (10 digit):","regExp":"^[0-9]{10}","required":true,"styles":{},"width":"95%"}, {}],
panel8: ["wm.Panel", {"desktopHeight":"56px","enableTouchHeight":true,"height":"45px","horizontalAlign":"left","layoutKind":"left-to-right","mobileHeight":"45px","styles":{},"verticalAlign":"middle","width":"95%"}, {}, {
pictureRegistrationChkBox: ["wm.Picture", {"aspect":"v","height":"45px","source":"resources/images/checkbox.jpg","width":"45px"}, {"onclick":"pictureRegistrationClick"}],
pictureRegistrationChkBoxChecked: ["wm.Picture", {"aspect":"v","height":"45px","showing":false,"source":"resources/images/checkboxchecked.jpg","width":"45px"}, {"onclick":"pictureRegistrationClick"}],
txtCopyright2: ["wm.Label", {"align":"left","caption":"I agree to terms and conditions **","height":"34px","padding":"4","singleLine":false,"styles":{},"width":"100%"}, {"onclick":"pictureRegistrationClick"}]
}],
buttonRegistration: ["wm.Button", {"border":"1","caption":"Register &nbsp; &nbsp; &nbsp; &nbsp;&nbsp;   ","desktopHeight":"30px","height":"45px","imageIndex":43,"imageList":"app.silkIconList","mobileHeight":"45px","styles":{"fontWeight":"bold"},"width":"95%"}, {"onclick":"buttonRegistrationClick"}],
spacer1: ["wm.Spacer", {"height":"11px","width":"96px"}, {}],
buttonLogin: ["wm.Button", {"border":"1","caption":"Back to Login","desktopHeight":"30px","height":"45px","imageIndex":58,"imageList":"app.silkIconList","mobileHeight":"45px","styles":{"fontWeight":"bold"},"width":"95%"}, {"onclick":"layerLogin"}],
labelCoyRight3: ["wm.Label", {"align":"center","caption":"Copyright @2014 H2M App.com","height":"26px","link":"http://h2mapp.com/products.html","padding":"4","styles":{"fontWeight":"normal","fontSize":"8px"},"width":"100%"}, {}],
labelCoyRight8: ["wm.Label", {"align":"center","caption":"","display":"labelCoyRight7ReadOnlyNodeFormat","height":"34px","link":undefined,"padding":"4","styles":{"fontWeight":"normal","fontSize":"12px","fontStyle":"normal"},"width":"100%"}, {}]
}]
}]
}]
}]
}]
}]
}]
};

MRegistrationPg.prototype._cssText = '';
MRegistrationPg.prototype._htmlText = '';